package com.tianpengtech.common.mock.impl.string;

import com.tianpengtech.common.mock.impl.AbstractNumberMock;
import com.tianpengtech.common.mock.impl.AbstractStringMock;
import com.tianpengtech.common.mock.impl.numberic.IntegerMock;

public class MobileMock extends AbstractStringMock{

	String mobile_prefix[] ={"17","13","18","14","15"};
	@Override
	public String mockData() {
		AbstractNumberMock<Integer> iMock = new IntegerMock();
		int index = iMock.mockData(0, mobile_prefix.length);
		StringBuffer mobile= new StringBuffer(); 
		mobile.append(mobile_prefix[index]);
		for (int i = 0; i <= 8; i++) {
			int inner = iMock.mockData(0,mobile_prefix.length);
			mobile.append(number[inner]);
		}
		return mobile.toString();
	}

}
